package cn.myj2c.executor.values;

public class JavaBoolean extends JavaInteger {
    private final boolean value;

    public JavaBoolean(boolean value) {
        super(value ? 1 : 0);
        this.value = value;
    }

    public boolean booleanValue() {
        return this.value;
    }

    public JavaBoolean copy() {
        return new JavaBoolean(value);
    }

    public String toString() {
        return "JavaBoolean(value=" + value + ")";
    }
}
